/**
 * Created by cjl on 2017/7/23.
 */
package com.kikt.rxjavaandretrofit.api

import com.kikt.rxjavaandretrofit.bean.DayBean
import com.kikt.rxjavaandretrofit.bean.DataBean
import com.kikt.rxjavaandretrofit.bean.Response
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path

interface GankApi {
    @GET("random/data/Android/20")
    fun randomData(): Observable<DataBean>

    @GET("day/{year}/{month}/{day}")
    fun getDataFromDay(@Path("year") year: Int, @Path("month") month: Int, @Path("day") day: Int): Observable<DayBean>

    @GET("data/{category}/{count}/{page}")
    fun getDataFromCategory(@Path("category") category: String, @Path("count") count: Int, @Path("page") page: Int): Observable<Response>

}